package cn.sc.summer.core.filter.custom;

import cn.hutool.core.util.IdUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * 类名：过滤器定义
 *
 * @author a-xin
 * @date 2024/4/1 17:10
 */
@Slf4j
public abstract class FilterX<T> {

    private final String filterId = IdUtil.simpleUUID();

    public String getFilterId() {
        return this.filterId;
    }

    /**
     * 过滤器执行方法
     *
     * @param param 入参类型
     */
    public abstract void doFilter(T param) throws Throwable;

}
